package com.qf.web.school_major.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qf.web.school_major.entity.MajorList;
import com.qf.web.school_major.entity.SchoolMajor;
import com.qf.web.school_major.mapper.SchoolMajorMapper;
import com.qf.web.school_major.service.SchoolMajorService;
import org.springframework.stereotype.Service;

/**
 * @author xufuhan
 * @Date 2024/9/12 14:03
 */

@Service
public class SchoolMajorServiceImpl extends ServiceImpl<SchoolMajorMapper, SchoolMajor> implements SchoolMajorService {

    @Override
    public IPage<SchoolMajor> getList(MajorList list) {
        IPage<SchoolMajor> page=new Page<>(list.getCurrentPage(),list.getPageSize());
        return this.baseMapper.getList(page,list);

    }
}
